package cn.net.xyan.easy.webapp.base.dao;

import cn.net.xyan.easy.spring.jpa.utils.EasyJpaRepository;
import cn.net.xyan.easy.webapp.base.entity.StatusAndType;

import java.util.List;

/**
 * Created by xiashenpin on 16/1/17.
 */
public interface StatusAndTypeDao extends EasyJpaRepository<StatusAndType,String> {
    StatusAndType findByTypeAndIndex(String type,Integer index);
    StatusAndType findByTypeAndTitle(String type,String title);
    List<StatusAndType> findByType(String type);
}
